home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00218_Script_GESTION_POPMENU_ZAPETTE
< prev
next >
Wrap
Text File
|
2004-12-05
|
2KB
|
66 lines
global gL_mobiDATA,gpiste_logoRoll, gmem_logoRoll
property p_cettePiste, p_Nodepiste,p_Acteur, pNblines
----------------------------------
on beginsprite me
p_Nodepiste = me.spriteNum
p_cettePiste = sprite(p_Nodepiste)
p_Acteur = p_cettePiste.member
p_cettePiste.member.fontSize = 9
pNblines = p_cettePiste.member.text.lines.count
end
-----------------------------------
on mouseWithin
if the pauseState = 1 then exit
cursor 280
p_Acteur.line[the mouseLine].hilite()
u = the mouseLine
if voidP(u) then exit
if u > 0 and u <= pNblines then
temp = gL_mobiDATA[5][u]
if not(voidP(temp)) then
sprite(gpiste_logoRoll).member = "logo"&temp[1].char[1..4]
case(count(temp)) of
2:
member("ZTITRE_ROLL").text = temp[2]
member("ZTITRE_ROLL").font = "Arial*"
3:
member("ZTITRE_ROLL").text = temp[3]
member("ZTITRE_ROLL").font = "Arial*"
end case
end if
updateStage
end if
end
---------------------------------
on mouseLeave
cursor -1
if the pauseState = 1 then exit
p_Acteur.line[999].hilite()
sprite(gpiste_logoRoll).member = gmem_logoRoll
member("ZTITRE_ROLL").text = EMPTY
end
-----------------------------------
on mouseUp
if the pauseState = 1 then exit
cursor -1
temp = gL_mobiDATA[5][the mouseLine]
case(count(temp)) of
2:
go "ATTENTE"
tell the stage
goOtherRub(temp[1],0)
end tell
3:
go "ATTENTE"
tell the stage
if temp[1] = "CPLUSCLAIR" then
goOtherRub(temp[1],0,"LABEL_"&gimme2digits(temp[2]))
else
goOtherRub(temp[1],temp[2]-1)
end if
end tell
end case
end
-----------------------------------